home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Business Master (3rd Edition)
/
The Business Master (3rd Edition).iso
/
files
/
commadio
/
boyan
/
install.bat
< prev
Wrap
DOS Batch File
|
1991-05-28
|
4KB
|
97 lines
echo off
break on
cls
echo ╒════════════════════════════════════════════════════╕
echo │ BOYAN 5.0 - EASY INSTALLATION │
echo │ │
echo │ This batch file will assist you in setting up │
echo │ the BOYAN files on your disk drive. │
if exist pkunzip.exe goto 5
echo │ It uses Phil Katz's PKUNZIP to extract the files.│
:5
if exist boyan5a.zip goto 10
echo ├────────────────────────────────────────────────────┤
echo │ BOYAN5A.ZIP was not found in the directory. │
echo │ Please change into the directory containing │
echo │ the BOYAN5A.ZIP file, then re-run INSTALL. │
goto 60
:10
if (%1)==() goto 30
if exist .\boyan5a.zip goto 20
echo ├────────────────────────────────────────────────────┤
echo │ The INSTALL.BAT program is designed to work │
echo │ with DOS versions 3.0 and higher. The version │
echo │ of DOS you are using is: ┘
ver
echo ├────────────────────────────────────────────────────┐
echo │ So you need to install BOYAN manually. You │
echo │ can do this by simply issuing the commands: ┘
echo │ PKUNZIP BOYAN5A %1
echo │ PKUNZIP BOYAN5B %1
echo │ This will unpack all of the BOYAN files ┐
echo │ into the directory you specified. │
goto 60
:20
echo ├────────────────────────────────────────────────────┘
echo │ BOYAN will be installed in directory: %1\
pkunzip -o BOYAN5A %1 needfree.exe install#.bat > nul
if exist %1\install#.bat goto 40
echo │ (Creating new subdirectory...)
pkunzip -d -o BOYAN5A %1 needfree.exe install#.bat > nul
if exist %1\install#.bat goto 40
echo │ An error occurred in writing to that directory! ┐
echo │ Either you specified an invalid directory name, │
echo │ or your disk is write-protected. │
:30
echo ├────────────────────────────────────────────────────┤
echo │ To use INSTALL, you must specify a drive and │
echo │ path where the BOYAN program files will reside. │
echo │ │
echo │ For example, to install BOYAN onto a new disk │
echo │ in drive "B", you would type: │
echo │ INSTALL B: │
echo │ (No backslash after the semicolon!) │
echo │ │
echo │ Similarly, to install BOYAN into a directory │
echo │ path named "BOY5" on hard drive "C", type: │
echo │ INSTALL C:\BOY5 │
echo ├────────────────────────────────────────────────────┤
echo │ Now, run this batch file using the command, │
echo │ INSTALL drive:\path │
echo │ specifying the destination for BOYAN 5.0 files. │
goto 60
:40
%1\needfree %1 580
if not errorlevel 2 goto 50
echo │
echo │ SPECIAL INSTRUCTIONS FOR FLOPPY DISK INSTALLATION! ┐
echo │ │
%1\needfree %1 338
if not errorlevel 1 goto 45
echo │ The disk currently in drive %1 does not have │
echo │ enough free space! Please prepare two blank │
echo │ formatted diskettes and insert one of them into │
echo │ drive %1. THEN, re-run "INSTALL %1" . │
goto 60
:45
echo │ 1. Remove the disk that is currently in drive %1 │
echo │ and label it "SCRIPTS & PROTOCOLS". Set this │
echo │ disk aside for later. │
echo │ 2. Insert a newly-formatted diskette labelled │
echo │ "BOYAN PROGRAM" into drive %1. │
echo │ │
echo │ » Press [space] after inserting the new disk, « │
echo │ » or [Ctrl-Break] if you need to format disks. « ┘
pause > nul
pkunzip -o BOYAN5A %1 install#.bat > nul
%1\install# %1 floppy
:50
if not errorlevel 1 %1\install# %1 hard
echo │ The directory does not have enough free space! │
echo │ At least 600 K should be available on the disk. │
echo │ │
echo │ Please insert a disk with sufficient free space │
echo │ for BOYAN; then re-run INSTALL. │
:60
echo ╘════════════════════════════════════════════════════╛